/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Helpers;

import java.util.Vector;
import javax.bluetooth.RemoteDevice;

/**
 *
 * @author Pedro
 */
public class ControleExec
{
    private Vector services;
    private Vector devices;

    public ControleExec()
    {
       services = new Vector();
       devices = new Vector();
    }

    public void addDevice(RemoteDevice rd)
    {
      devices.addElement(rd);
    }

   public boolean removeDevice(RemoteDevice rd)
   {
     return devices.removeElement(rd);
   }

   public int size()
    {
      return devices.size();
   }

   public RemoteDevice elementAt(int i)
    {
      return (RemoteDevice)devices.elementAt(i);
   }
}
